package com.example.rentalcar.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;


import java.util.Date;

/**
 * 支付信息对象 pay
 * 
 * @author ruoyi
 * @date 2024-01-03
 */
@TableName("pay")
public class Pay
{


    /** 支付表id */
    private Long payId;

    /** 用户id */

    private Long userId;

    /** 车辆id */

    private Long carId;

    /** 合同id */

    private Long corId;

    /** 支付金额 */

    private Long paySum;

    /** 支付日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")

    private Date payTime;

    public void setPayId(Long payId) 
    {
        this.payId = payId;
    }

    public Long getPayId() 
    {
        return payId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCarId(Long carId) 
    {
        this.carId = carId;
    }

    public Long getCarId() 
    {
        return carId;
    }
    public void setCorId(Long corId) 
    {
        this.corId = corId;
    }

    public Long getCorId() 
    {
        return corId;
    }
    public void setPaySum(Long paySum) 
    {
        this.paySum = paySum;
    }

    public Long getPaySum() 
    {
        return paySum;
    }
    public void setPayTime(Date payTime) 
    {
        this.payTime = payTime;
    }

    public Date getPayTime() 
    {
        return payTime;
    }

    @Override
    public String toString() {
        return "Pay{" +
                "payId=" + payId +
                ", userId=" + userId +
                ", carId=" + carId +
                ", corId=" + corId +
                ", paySum=" + paySum +
                ", payTime=" + payTime +
                '}';
    }

    public Pay() {
    }
}
